package v1

import (
	"github.com/gogf/gf/v2/frame/g"
)

type SettingMenuCreateReq struct {
	g.Meta       `path:"/setting/menu/create" tags:"setting" method:"post" summary:"创建菜单"`
	MenuParentId *string `json:"menuParentId" dc:"父级菜单"`
	MenuSort     int     `json:"menuSort" dc:"排序"`
	Path         *string `json:"path" dc:"路径"`
	Name         *string `json:"name" dc:"名称"`
	Redirect     *string `json:"redirect" dc:"重定向"`
	Component    *string `json:"component" dc:"组件"`
	MetaInfo     struct {
		Icon      *string `json:"icon" dc:"图标"`
		Title     *string `json:"title" dc:"标题"`
		Active    *string `json:"active" dc:"active"`
		MenuType  *string `json:"type" dc:"type"`
		Hidden    *bool   `json:"hidden" dc:"hidden"`
		Fullpage  *bool   `json:"fullpage" dc:"fullpage"`
		Affix     *bool   `json:"affix" dc:"affix"`
		KeepAlive *bool   `json:"keepAlive" dc:"keepAlive"`
		Tag       *string `json:"tag" dc:"tag"`
	} `json:"meta" dc:"meta"`
}

type SettingMenuCreateRes struct {
	Uuid string `json:"uuid" dc:"菜单唯一标识"`
}
